<%@ page contentType="text/html;charset=UTF-8" language="java" %>  
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>  
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>  

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<style type="text/css">
</style>
</head>
<body>
<div id="content">

<h3>Subjects</h3>
<a href="<c:url value="/subject/create.do" />">Create Subject</a>
<table>    
    <thead>
        <tr>
            <th>Name</th>
            <th>Description</th>
        </tr>
    </thead>
    <tbody>
        <c:forEach var="user" items="${subjectList}">
        <tr>
            <td><a href="<c:url value="/subject/view.do?subjectId=${subject.id}"/>">${subject.name}</a></td>
            <td>${subject.name}</td>
        </tr>
        </c:forEach>   
    </tbody>    
</table>

</div>
</body>
</html>